package cn.com.xf.service;

import java.util.List;

import cn.com.xf.domain.TblApiApp;
import cn.com.xf.domain.TblApiBar;
import cn.com.xf.domain.TsSiteinfo;
import cn.com.xf.web.form.BarForm;

public interface TblApiBarService {

	int insertTbBar(BarForm form);

	List<TblApiBar> select(int begin, int pageSize, String orderByField, String orderByMode, String siteid,
			String brand, String deviceid);

	TblApiBar selectByDeviceID(String deviceId);

	int selectCount(String siteid, String brand, String deviceid);

	int delete(String id);

	List<TblApiApp> selectAllBrand();

	List<TsSiteinfo> selectSites(String term);
	
	List<TsSiteinfo> selectSites();

	int insertApiApp(TblApiApp app);

	int selectAppCount(String companyName, String appType, String appStatus);

	List<TblApiApp> selectApp(int begin, int pageSize, String orderByField, String orderByMode, String companyName,
			String appType, String appStatus);

	int deleteAppById(String id);

	TblApiApp selectAppById(String id);

	int updateApiApp(TblApiApp app);
	
	int insertBatchBar(List<TblApiBar> list);
}
